import org.junit.Before;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;

import static org.junit.Assert.*;

public class LiczbaExceptionTest {

        Liczba l = null;
        @Before
        public void setUp() throws Exception {
                l = new Liczba(4);
        }
        @Test
        public void test1()  
        {
                assertSame(l,l);
               
        }
        
        @Ignore
        public void test2() throws Exception
        {
                assertEquals("01",l.Zapis(2));
        }
        @Test(timeout=5)
        public void test3() throws Exception
        {
                assertEquals("4 binarnie to 10",l.Zapis(2),"001");
        }
        @Test(expected=LiczbaException.class)
        public void test4()
        {
                assertNotNull(new Liczba(-1));
        }
        @After
        public void test5()
        {
                l = null;
        }


}

